Git Config
Git 详细安装教程(详解 Git 安装过程的每一个步骤)_git安装-CSDN博客
在 macOS 上通常直接使用 Command Line Tools for Xcode 里带的 Git,估计通过包管理器安装都是使用默认值了,而 Windows 上的 Git 安装向导会有一堆的拦住小白的选项要选择,本质这些选项都是各层级 gitconfig 文件中的一条参数:
- Choosing the default editor used by Git, 这是在编辑 commit 消息输入文字时用的,而非敲命令的 bash,比如通过命令
git config –global core.editor vim修改。
除了这些用的好的设置还有用的设置,commit 需要的用户信息
git config --global user.name "****"
git config --global user.email ****@gmail.com